package com.wanxi.object;

/**
 * 一般定义Javabean对象根据项目格式来
 * 对象后面
 * 1）model
 * 2）entry
 * 3)bean
 * 4)pojo
 * 5)vo
 * 6)do
 * 7)dto
 */
public class WaterModel {
    private String name;
    private String color;
    private int capacity;
    private String model;

    public WaterModel() {
    }

    public WaterModel(String name, String color, int capacity, String model) {
        this.name = name;
        this.color = color;
        this.capacity = capacity;
        this.model = model;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public int getCapacity() {
        return capacity;
    }

    public void setCapacity(int capacity) {
        this.capacity = capacity;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public void show() {
        System.out.println("品牌为：" + this.name + "\n颜色为：" + this.color);
    }
}
